package com.fanghaoran.entity;

import java.time.LocalDateTime;

/**
 * @Author: win11
 * @Date: 2023/03/23/13:06
 * @Description: 对应数据库签到表的实体类
 */
public class Sign {
    private int id;
    private int userId;
    private int clockDays;
    private int flag;
    private LocalDateTime lastClockDate;


    public Sign() {
    }

    public Sign(int id, int userId, int clockDays, int flag, LocalDateTime lastClockDate) {
        this.id = id;
        this.userId = userId;
        this.clockDays = clockDays;
        this.flag = flag;
        this.lastClockDate = lastClockDate;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id 签到id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userId
     */
    public int getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId 用户id
     */
    public void setUserId(int userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return clockDays
     */
    public int getClockDays() {
        return clockDays;
    }

    /**
     * 设置
     * @param clockDays 打卡天数
     */
    public void setClockDays(int clockDays) {
        this.clockDays = clockDays;
    }

    /**
     * 获取
     * @return flag
     */
    public int getFlag() {
        return flag;
    }

    /**
     * 设置
     * @param flag 打卡标志
     */
    public void setFlag(int flag) {
        this.flag = flag;
    }

    /**
     * 获取
     * @return lastClockDate
     */
    public LocalDateTime getLastClockDate() {
        return lastClockDate;
    }

    /**
     * 设置
     * @param lastClockDate 上次打卡时间
     */
    public void setLastClockDate(LocalDateTime lastClockDate) {
        this.lastClockDate = lastClockDate;
    }

    @Override
    public String toString() {
        return "Sign{id = " + id + ", userId = " + userId + ", clockDays = " + clockDays + ", flag = " + flag + ", lastClockDate = " + lastClockDate + "}";
    }
}
